﻿//==============================================================================================
//Author: Uncle Song
//Create Date: 2022-07-22
//Description: 编码规范
//----------------------------------------------------------------------------------------------
//Alter History:
//              2010-08-03  add Codes.
//============================================================================================== 

using UnityEngine;
using UnityEngine.UI;

namespace FrameWorkSong
{
    /// <summary>
    /// 类名
    /// 首字母大写驼峰式
    /// </summary>
    public class ProgrammingStyle : MonoBehaviourSimplify
    {
        public override void OnBeforeDestroy(){}
        /// <summary>
        /// 私有变量 private和protected
        /// 首字母小写驼峰式
        /// m_开头+类型+描述
        /// </summary>
        Button m_btnPrefab;

        /// <summary>
        /// 公共变量 public和internal
        /// 首字母大写驼峰式
        /// 类型+描述
        /// </summary>
        public int IndexPeopel;

        /// <summary>
        /// 临时变量
        /// 首字母小写驼峰式
        /// 类型+描述
        /// </summary>
        GameObject gobjPrefab;

        /// <summary>
        /// 数组遍历
        /// 类型+描述+s
        /// </summary>
        public Vector3[] PosPelpeos;

        /// <summary>
        /// 方法名
        /// 首字母大写驼峰式
        /// </summary>
        public void FunctionOne(){ }

        //类型
        //GameObject->G obj
        //Transform->Trans
        //int->Index/Num/Count;
        //Vector3 ->Pos
        //Vector2->Pos/Size
        //string->str
        //List<>->List
        //Dictionary<>->Dict
        //float ->Ft
        //Image->Img
        //Texture->Tex
        //bool->Is


        //常用英文缩写
        //Number->Num
        //Current->Cur

        //计算限定词
        //Count、Number、Num、Index、Todal、Sum、Average、Max、Min、Record

        //不常用英文备注
        /// <summary>
        /// 人口统计
        /// Counting[统计]
        /// </summary>
        public void PeopleCounting() { }
    }
}

